import turtle as p
import random
#绘制雪花
def star(star_count):
    p.hideturtle()
    p.speed(500)
    p.pensize(2)
    for i in range(star_count):
        r = random.random()
        g = random.random()
        b = random.random()
        p.pencolor(r, g, b)
        p.pu()
        p.goto(random.randint(-600, -10), random.randint(30, 120))
        p.pd()
        dens = random.randint(8, 12)
        starsize = random.randint(10, 14)
        p.begin_fill()
        
        p.end_fill()
        for i in range(5):
            p.forward(30)
            p.right(144)

#主函数：
def main():
    p.setup(800, 800, 0, 0)
    p.bgcolor("snow")
    star(10)
    p.mainloop()
main()
t.penup()
t.goto(-200,90)
t.pendown()
t.pencolor("#00FF00")
#五角星
t.begin_fill()
t.fillcolor("#00FF00")
for i in range(5):
    t.forward(45)
    t.right(144)
t.end_fill()